package com.darren.euc.service;

import java.util.List;

import com.darren.euc.entity.Contract;
import com.darren.euc.entity.PageBean;

import net.sf.json.JSONObject;

public interface ContractService {
    
	public Contract save(Contract contract);
	    
	public Contract update(Contract contract);
	
	public Contract findById(Integer id);
	
	public void delete(Contract contract);
    
	public List<Contract> getAll();
    
	public PageBean queryForPageUseHQL(JSONObject requestJson,Integer pageSize, Integer currentPage);
	
	public PageBean queryFinanceContracts(JSONObject requestJson,Integer pageSize, Integer currentPage);

}